<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block">
        {php}for($a=0;$a<$value['ceng'];$a++){{/php}
            {if $value['value']}
            {if $a==$value['ceng']-1}
                <div class="layui-inline">
                    <select class="widt" lay-ignore name="{$value['name']}" onchange="lianbiao('{$value['table']}','{$value['action']}',this)">
                        <option value="">请选择</option>
                        {foreach $value['option3'] as $v}
                        {if $v['id']==$value['value']}
                        <option value="{$v['id']}" selected>{$v['name']}</option>
                        {else}
                        <option value="{$v['id']}">{$v['name']}</option>
                        {/if}
                        {/foreach}
                    </select>
                </div>
            {elseif $a==$value['ceng']-2}
                <div class="layui-inline">
                    <select class="widt" lay-ignore name="{$value['name']}" onchange="lianbiao('{$value['table']}','{$value['action']}',this)">
                        <option value="">请选择</option>
                        {foreach $value['option2'] as $v}
                        {if $v['id']==$value['pid2']}
                        <option value="{$v['id']}" selected>{$v['name']}</option>
                        {else}
                        <option value="{$v['id']}">{$v['name']}</option>
                        {/if}
                        {/foreach}
                    </select>
                </div>
            {elseif $a==$value['ceng']-3}
                <div class="layui-inline">
                    <select class="widt" lay-ignore name="{$value['name']}" onchange="lianbiao('{$value['table']}','{$value['action']}',this)">
                        <option value="">请选择</option>
                        {foreach $value['option1'] as $v}
                        {if $v['id']==$value['pid1']}
                        <option value="{$v['id']}" selected>{$v['name']}</option>
                        {else}
                        <option value="{$v['id']}">{$v['name']}</option>
                        {/if}
                        {/foreach}
                    </select>
                </div>
            {/if}
        {else}
                {if $a==0}
                    <div class="layui-inline">
                        <select class="widt" lay-ignore name="{$value['name']}" onchange="lianbiao('{$value['table']}','{$value['action']}',this)">
                            <option value="">请选择</option>
                            {foreach $value['option1'] as $v}
                            <option value="{$v['id']}">{$v['name']}</option>
                            {/foreach}
                        </select>
                    </div>
                {else}
                    <div class="layui-inline">
                        <select class="widt" lay-ignore name="{$value['name']}" onchange="lianbiao('{$value['table']}','{$value['action']}',this)">
                            <option value="">请选择</option>
                        </select>
                    </div>
                {/if}
        {/if}
        {php}}{/php}
    </div>
</div>